package com.cloudkinto.service.order.vo;

import lombok.Data;

import java.util.List;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2021/6/7
 */
@Data
public class AutoSwitchStorageEntity {
    private long storageId;
    private int price;
    private List<ProductAndCount> productAndCountList;

    public AutoSwitchStorageEntity() {
    }

    public AutoSwitchStorageEntity(long storageId, int price, List<ProductAndCount> productAndCount) {
        this.storageId = storageId;
        this.price = price;
        this.productAndCountList = productAndCountList;
    }

    @Data
    public static class ProductAndCount {
        private long productId;
        private int count;

        public ProductAndCount() {
        }

        public ProductAndCount(long productId, int count) {
            this.productId = productId;
            this.count = count;
        }
    }
}
